# -*- coding: utf-8 -*-
from django.db.models import permalink
from google.appengine.ext import db

class Question(db.Model):
    title = db.StringProperty(required=True)
    answer = db.TextProperty(required=True)
    
    def __unicode__(self):
        self.title = self.title.strip()
        if not self.title.endswith("?"):
            self.title += "?"
        return "%s" % (self.title,)
